import { Routes, RouterModule }  from '@angular/router';
import { DriverComponent } from './driver.component';
import { DriverDetailComponent } from './detail/driver-detail.component';

const routes: Routes = [
  {
    path: '',
    component: DriverComponent
  },
  {
      path:'detail/:driver_id',
      component: DriverDetailComponent
  },
];

export const routing = RouterModule.forChild(routes);